package threadlocal;

/**
 * @Classname Service2
 * @Description Service2
 * @Date 2024/1/14 21:58
 * @Author zhuzhenguo
 */
public class Service2 {
    public void process() {
        User user = UserContextHolder.holder.get();
        ThreadSafeFormatter.dateFormatThreadLocal.get();
        System.out.println("Service2拿到用户名：" + user.name);
        new Service3().process();
    }
}
